<!DOCTYPE html>
<html>
<head>
    <title>CSS Transforms Test: SVG patternTransform presentation attribute with rotate and translateX in percentage units, the latter has no effect</title>
    <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-transform">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-user-coordinate-space">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-gradient-transform-pattern-transform">
    <link rel="match" href="reference/svg-patternTransform-relative-ref.html">
    <meta name="flags" content="svg">
    <meta name="assert" content="Arguments in percentage units in patternTransform functions should have no affect. The gradient in the test should be not be translated, but should be rotated resulting in a solid green rect.">
    <style type="text/css">
    svg {
        width: 100px;
        height: 100px;
    }
    </style>
</head>
<body>
    <p>The test passes if there is a green square and no red.</p>
    <svg>
        <defs>
            <pattern id="greenRects" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" patternTransform="rotate(90) translateX(25%)">
                <rect x="0" y="0" width="27" height="100" fill="green"/>
                <rect x="49" y="0" width="27" height="100" fill="green"/>
            </pattern>
        </defs>
        <rect fill="red" x="0" y="0" width="100" height="25"/>
        <rect fill="green" x="0" y="24" width="100" height="27"/>
        <rect fill="red" x="0" y="50" width="100" height="25"/>
        <rect fill="green" x="0" y="74" width="100" height="27"/>
        <rect fill="url(#greenRects)" x="0" y="0" width="100" height="100"/>
    </svg>
</body>
</html>
